//
//  DataOfQuestionsAndAnswersAuslese.m
//  LCOnePsychology
//
//  Created by li cheng on 16/09/06
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "DataOfQuestionsAndAnswersAuslese.h"
#import "ListOfDataQuestionsAndAnswersAuslese.h"
#import "MsgOfDataQuestionsAndAnswersAuslese.h"
@implementation DataOfQuestionsAndAnswersAuslese

+ (NSDictionary *)objectClassInArray{
    return @{@"list" : [ListOfDataQuestionsAndAnswersAuslese class]};
}

- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"msg"]) {
        _msg = [MsgOfDataQuestionsAndAnswersAuslese modelDic:value];
    }
    if ([key isEqualToString:@"list"]) {
        NSMutableArray<ListOfDataQuestionsAndAnswersAuslese *> *mArrayOfListOfDataQuestionsAndAnswersAuslese = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            ListOfDataQuestionsAndAnswersAuslese *listOfDataQuestionsAndAnswersAuslese = [ListOfDataQuestionsAndAnswersAuslese modelDic:dic];
            [mArrayOfListOfDataQuestionsAndAnswersAuslese addObject:listOfDataQuestionsAndAnswersAuslese];
        }
        _list = mArrayOfListOfDataQuestionsAndAnswersAuslese;
    }
}
@end
